package com.zgjkhis.modules.outpatient.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 订单退费
 * @author yxl
 */
@Data
@NoArgsConstructor
public class RefundOrderDto {

    @ApiModelProperty(value = "订单号")
    @NotNull(message = "订单号不能为空")
    private String orderNo;

    @ApiModelProperty(value = "是否需要退库存：0：否，1：是")
    private Integer type;

    @ApiModelProperty(value = "退全款：0：否，1：是,为1时,infoIds为空,为0时，infoIds不为空")
    @NotNull(message = "是否退全款不能为空")
    private Integer refundType;

    @ApiModelProperty(value = "退款原因")
    @NotNull(message = "退款原因不能为空")
    private String msg;

    @ApiModelProperty(value = "需要退款的处方号,1：邮寄费用，2：其他费用")
    private List<String> infoIds;


}
